<?php namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\WorksExportJob
 *
 * @property integer $id
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 * @property string $file
 * @property string $notice
 * @method static \Illuminate\Database\Query\Builder|\App\Models\WorksExportJob whereId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Models\WorksExportJob whereCreatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Models\WorksExportJob whereUpdatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Models\WorksExportJob whereFile($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Models\WorksExportJob whereNotice($value)
 * @mixin \Eloquent
 * @property boolean $attempts
 * @method static \Illuminate\Database\Query\Builder|\App\Models\WorksExportJob whereAttempts($value)
 */
class WorksExportJob extends Model
{
    protected $table = 'works_export_jobs';

    /**
     * 获取文件的实际地址
     * @return mixed
     */
    public function getFilePath()
    {
        return storage_path($this->file);
    }
}